<html>
<head>
	<meta charset='utf-8' />
	<title>便民信息</title>
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
	<style>
		@media screen and (max-width:450px){
			#nav_bottom{width:98%;margin:0 auto}
			#content{width:98%;margin:0 auto}
			/*页面宽度900以下时 .abc的宽度为450*/
		}
		@media screen and (min-width:450px){
			#nav_bottom{width:450px;margin:0 auto}
			#content{width:450px;margin:0 auto}
			/*页面宽度900以下时 .abc的宽度为450*/
		}
	</style>
</head>
<body style='padding:0;margin:0;background:#eee'>
	<!--主内容区-->
	<div style='margin-bottom:80px' id='content'>
	
		<!--顶部广告区-->
		<div style='margin-bottom:5px;height:70px;border:1px solid'>
			顶部广告区
		</div>

		<!--信息详情-->
		<div id='service_detail_content'></div>


		<div style='text-align:center;margin:30px 0'>
			<button id='service_detail_back'>返回</button>
		</div>

	</div>


</body>
</html>
<script src='./Public/Js/jquery.js'></script>
<script src='./Public/Js/md5.js'></script>
<script>
$(function(){
	//加载详情
	var service_detail_file_name = md5(sessionStorage.service_detail_serviceId+sessionStorage.service_detail_infoId);
	$.ajax({
		url:'Service/Template/Service_detail/'+service_detail_file_name+'.html',
		success:function(res){
		//	alert(1);
			$('#service_detail_content').html(res);
		},
		error:function(){
			$.ajax({
				url:'interface.php',
				data:{
					type:'token',
				},
				success:function(token){
					if(sessionStorage.service_detail_type){
						var detail_type = sessionStorage.service_detail_type;
					}else{
						var detail_type = 'index';
					}
					$.ajax({
						url:'before.php/Before/Index/service_detail_content',
						data:{
							token:token,
							info_id:sessionStorage.service_detail_infoId,
							service_id:sessionStorage.service_detail_serviceId,
							file_name:service_detail_file_name,
							detail_type:detail_type
						},
						success:function(res){
						//	alert(2);
							$('#service_detail_content').html(res);
						}
					});
				}
			})
		}
	})



	//返回
	$('#service_detail_back').click(function(){
		history.go(-1);exit;
	});


	//加载底部导航
	$.ajax({
		url:'./Public/Base/before_base_bottom_nav.html',
		success:function(res){
			$(res).appendTo('body');
		}
	})



});

</script>












